package dao;

import transferobject.User;

/**
 * User DAO interface. This interface
 * needs to be implemented by the all UserDAO
 * @author Ilya_Poliakov
 */
public interface UserDao {
	/**
	 * Insert new user
	 * @return user ID
	 */
	public int insertUser(User user);
	/**
	 * Delete user by user ID
	 * @return user was deleted
	 */
	public boolean deleteUser(int userId);
	/**
	 * find user by user ID
	 * @return User
	 */
	public User findUser(int userId);
	/**
	 * Update user
	 * @return user has been updated
	 */
	public boolean updateUser(User user);
}
